<template>
  <div>
    <div class="mp-ticket-item border-bottom" v-for="item in list" :key="item.id"><!-- 预定区域 -->
      <div class="left">
        <h6 class="piaotitle">{{ item.name }}</h6>
        <p class="time">
          <img class="imgs" src="https://img1.qunarzz.com/piao/fusion/1804/25/792e9929973a9902.png">
          23:59前可订明日
        </p>
        <p class="reservation-notes">预订须知</p><!-- 预定须知 -->
      </div>
      <div class="right">
        <div class="mp-ticket-type-price">
          ¥<em class="mp-price-num">{{ item.price }}</em>
        </div>
        <div class="reserve">
          预定
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'reserve',
  props: {
    list: Array
  }
}
</script>

<style lang="stylus" scoped="scoped">
.mp-ticket-item
  padding 0.2rem
  width 100%
  background-color #f5f5f5
  box-sizing border-box
  overflow hidden
  .left
    float left
    width 65%
    .piaotitle
      padding 0
      color #616161
      font-size .28rem
      line-height .4rem
    .time
      height .32rem
      color #616161
      font-size .24rem
      line-height .32rem
      .imgs
        display inline-block
        width 0.2rem
        max-height 0.32rem
        margin-right 0.04rem
        margin-top -0.06rem
    .reservation-notes
      margin-top .08rem
      color #616161
      font-size .24rem
      line-height .34rem
  .right
    float right
    width 35%
    margin-top 0.4rem
  .mp-ticket-type-price
    text-align center
    overflow hidden
    height .4rem
    line-height .4rem
    right .46rem
    margin-top -0.2rem
    color #ff9800
    font-size .24rem
  .reserve
    text-align center
    height .6rem
    color #fff
    font-size .28rem
    line-height .6rem
    border-radius 0.08rem
    background-image linear-gradient(130deg,#ffab1e 37%,#ff8c12 100%)
.mp-price-num
  margin-left .04rem
  font-size .4rem
</style>
